package com.hmall.mapper;

import com.hmall.model.MallNavigationItem;
import com.hmall.util.MyMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MallNavigationItemMapper extends MyMapper<MallNavigationItem> {
    void deleteByNavId(@Param("navigation_id") Integer navigation_id);

    Integer selectByNameAndId(@Param("name") String name,@Param("navigation_id") Integer navigation_id);

    List<MallNavigationItem> selectByNavigationId(@Param("navigation_id") Integer navigation_id);

    Integer selectByNameAndNavId(@Param("name")String name, @Param("navigation_id") Integer navigation_id,@Param("nav_id") Integer nav_id);

    List<MallNavigationItem> selectAllWithPage(@Param("pageStart") Integer pageStart,@Param("pageSize") Integer pageSize);
}